<?php
$dbhost = "localhost:3308";
$dbuser = "root";
$dbpwd = "kaida";
$dbname = "bupuxiang";
$dbcharset = "utf8";
//$dbprefix = "phpaaCMS_";

if($dbhost != "")
{
	if(!@mysql_connect($dbhost,$dbuser,$dbpwd)) {
			echo "
			 <p align='center'>数据库连接失败.<br><br>
			 <input class=\"formbutton\" type=\"button\" value=\"上一步\" onclick=\"history.back(1)\" />
			</p>";
			exit();
	} elseif(!@mysql_select_db($dbname)) {
			echo "
			 <p align='center'>数据库不存在.<br><br>
			 <input class=\"formbutton\" type=\"button\" value=\"上一步\" onclick=\"history.back(1)\" />
			</p>";
			exit();
	}
}